package pl.edu.agh.persdoc.model;

import java.util.*;

import org.ektorp.support.*;
import org.joda.time.*;

public class Examination extends CouchDbDocument {

	private static final long serialVersionUID = 1L;
	
	private String patientID;
	private String name;
	private Date timestamp;		
	private int value;			


	@Override
	public void setRevision(String s) {
		// downstream code does not like revision set to emtpy string, which Spring does when binding
		if (s != null && !s.isEmpty()) super.setRevision(s);
	}

	public void setPatientID(String patientID) {
		this.patientID = patientID;
	}
	public String getPatientID() {
		return patientID;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}
	public Date getTimestamp() {
		return timestamp;
	}
	public void setValue(int value) {
		this.value = value;
	}
	public int getValue() {
		return value;
	}
}
